
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# install ohmyzsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

# update brew
brew udpate && brew upgrade

# install iterm2
brew install --cask iterm2
git clone https://github.com/mbadolato/iTerm2-Color-Schemes.git ~/.iTerm2-Color-Schemes

# install git
brew install git

# install zsh staffs
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

# config git and zsh
git clone https://gitee.com/hixuym/dotfiles.git ~/.dotfiles
ln -s ~/.dotfiles/.zshrc ~/.zshrc 
ln -s ~/.dotfiles/.zshenv ~/.zshenv
ln -s ~/.dotfiles/.gitconfig

# install nerd fonts
brew tap homebrew/fonts
brew install --cask font-hack-nerd-font

# install powerlevel9k
brew tap sambadevi/powerlevel9k
brew install powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

# install neovim
brew install neovim
brew install ripgrep
#git clone https://github.com/NvChad/NvChad ~/.config/nvim
#nvim +'hi NormalFloat guibg=#1e222a' +PackerSync

#mkdir ~/.config/nvim/lua/custom
#cp examples/init.lua lua/custom/init.lua
#cp examples/chadrc.lua lua/custom/chadrc.lua

# install nodejs
brew install nodejs
npm config set registry https://registry.npm.taobao.org 
npm install yarn -g
yarn config set registry https://registry.npm.taobao.org

# install lua
brew install lua
# install lunarvim
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)



